import 'package:jyofservice/bean/weixiutongji_entity.dart';
import 'package:jyofservice/generated/json/base/json_filed.dart';

weixiutongjiEntityFromJson(WeixiutongjiEntity data, Map<String, dynamic> json) {
	if (json['Code'] != null) {
		data.code = json['Code'].toString();
	}
	if (json['Msg'] != null) {
		data.msg = json['Msg'].toString();
	}
	if (json['Data'] != null) {
		data.data = (json['Data'] as List).map((v) => WeixiutongjiData().fromJson(v)).toList();
	}
	return data;
}

Map<String, dynamic> weixiutongjiEntityToJson(WeixiutongjiEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Code'] = entity.code;
	data['Msg'] = entity.msg;
	data['Data'] =  entity.data?.map((v) => v!.toJson())?.toList();
	return data;
}

weixiutongjiDataFromJson(WeixiutongjiData data, Map<String, dynamic> json) {
	if (json['Department_name'] != null) {
		data.departmentName = json['Department_name'].toString();
	}
	if (json['Department_id'] != null) {
		data.departmentId = json['Department_id'] is String
				? int.tryParse(json['Department_id'])
				: json['Department_id'].toInt();
	}
	if (json['Real_name'] != null) {
		data.realName = json['Real_name'].toString();
	}
	if (json['User_id'] != null) {
		data.userId = json['User_id'] is String
				? int.tryParse(json['User_id'])
				: json['User_id'].toInt();
	}
	if (json['zs'] != null) {
		data.zs = json['zs'] is String
				? int.tryParse(json['zs'])
				: json['zs'].toInt();
	}
	if (json['ywc'] != null) {
		data.ywc = json['ywc'] is String
				? int.tryParse(json['ywc'])
				: json['ywc'].toInt();
	}
	if (json['wwc'] != null) {
		data.wwc = json['wwc'] is String
				? int.tryParse(json['wwc'])
				: json['wwc'].toInt();
	}
	if (json['wwchb'] != null) {
		data.wwchb = json['wwchb'] is String
				? int.tryParse(json['wwchb'])
				: json['wwchb'].toInt();
	}
	if (json['yhf'] != null) {
		data.yhf = json['yhf'] is String
				? int.tryParse(json['yhf'])
				: json['yhf'].toInt();
	}
	if (json['myl'] != null) {
		data.myl = json['myl'].toString();
	}
	if (json['jsl'] != null) {
		data.jsl = json['jsl'].toString();
	}
	if (json['bjl'] != null) {
		data.bjl = json['bjl'].toString();
	}
	if (json['cljsl'] != null) {
		data.cljsl = json['cljsl'].toString();
	}
	if (json['1'] != null) {
		data.x1 = json['1'] is String
				? int.tryParse(json['1'])
				: json['1'].toInt();
	}
	if (json['2'] != null) {
		data.x2 = json['2'] is String
				? int.tryParse(json['2'])
				: json['2'].toInt();
	}
	if (json['3'] != null) {
		data.x3 = json['3'] is String
				? int.tryParse(json['3'])
				: json['3'].toInt();
	}
	if (json['4'] != null) {
		data.x4 = json['4'] is String
				? int.tryParse(json['4'])
				: json['4'].toInt();
	}
	if (json['5'] != null) {
		data.x5 = json['5'] is String
				? int.tryParse(json['5'])
				: json['5'].toInt();
	}
	if (json['6'] != null) {
		data.x6 = json['6'] is String
				? int.tryParse(json['6'])
				: json['6'].toInt();
	}
	if (json['7'] != null) {
		data.x7 = json['7'] is String
				? int.tryParse(json['7'])
				: json['7'].toInt();
	}
	if (json['8'] != null) {
		data.x8 = json['8'] is String
				? int.tryParse(json['8'])
				: json['8'].toInt();
	}
	if (json['9'] != null) {
		data.x9 = json['9'] is String
				? int.tryParse(json['9'])
				: json['9'].toInt();
	}
	if (json['10'] != null) {
		data.x10 = json['10'] is String
				? int.tryParse(json['10'])
				: json['10'].toInt();
	}
	if (json['11'] != null) {
		data.x11 = json['11'] is String
				? int.tryParse(json['11'])
				: json['11'].toInt();
	}
	if (json['12'] != null) {
		data.x12 = json['12'] is String
				? int.tryParse(json['12'])
				: json['12'].toInt();
	}
	if (json['13'] != null) {
		data.x13 = json['13'] is String
				? int.tryParse(json['13'])
				: json['13'].toInt();
	}
	if (json['14'] != null) {
		data.x14 = json['14'] is String
				? int.tryParse(json['14'])
				: json['14'].toInt();
	}
	if (json['15'] != null) {
		data.x15 = json['15'] is String
				? int.tryParse(json['15'])
				: json['15'].toInt();
	}
	if (json['16'] != null) {
		data.x16 = json['16'] is String
				? int.tryParse(json['16'])
				: json['16'].toInt();
	}
	if (json['17'] != null) {
		data.x17 = json['17'] is String
				? int.tryParse(json['17'])
				: json['17'].toInt();
	}
	if (json['18'] != null) {
		data.x18 = json['18'] is String
				? int.tryParse(json['18'])
				: json['18'].toInt();
	}
	if (json['19'] != null) {
		data.x19 = json['19'] is String
				? int.tryParse(json['19'])
				: json['19'].toInt();
	}
	if (json['20'] != null) {
		data.x20 = json['20'] is String
				? int.tryParse(json['20'])
				: json['20'].toInt();
	}
	if (json['21'] != null) {
		data.x21 = json['21'] is String
				? int.tryParse(json['21'])
				: json['21'].toInt();
	}
	if (json['22'] != null) {
		data.x22 = json['22'] is String
				? int.tryParse(json['22'])
				: json['22'].toInt();
	}
	if (json['23'] != null) {
		data.x23 = json['23'] is String
				? int.tryParse(json['23'])
				: json['23'].toInt();
	}
	if (json['24'] != null) {
		data.x24 = json['24'] is String
				? int.tryParse(json['24'])
				: json['24'].toInt();
	}
	if (json['25'] != null) {
		data.x25 = json['25'] is String
				? int.tryParse(json['25'])
				: json['25'].toInt();
	}
	if (json['26'] != null) {
		data.x26 = json['26'] is String
				? int.tryParse(json['26'])
				: json['26'].toInt();
	}
	return data;
}

Map<String, dynamic> weixiutongjiDataToJson(WeixiutongjiData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Department_name'] = entity.departmentName;
	data['Department_id'] = entity.departmentId;
	data['Real_name'] = entity.realName;
	data['User_id'] = entity.userId;
	data['zs'] = entity.zs;
	data['ywc'] = entity.ywc;
	data['wwc'] = entity.wwc;
	data['wwchb'] = entity.wwchb;
	data['yhf'] = entity.yhf;
	data['myl'] = entity.myl;
	data['jsl'] = entity.jsl;
	data['bjl'] = entity.bjl;
	data['cljsl'] = entity.cljsl;
	data['1'] = entity.x1;
	data['2'] = entity.x2;
	data['3'] = entity.x3;
	data['4'] = entity.x4;
	data['5'] = entity.x5;
	data['6'] = entity.x6;
	data['7'] = entity.x7;
	data['8'] = entity.x8;
	data['9'] = entity.x9;
	data['10'] = entity.x10;
	data['11'] = entity.x11;
	data['12'] = entity.x12;
	data['13'] = entity.x13;
	data['14'] = entity.x14;
	data['15'] = entity.x15;
	data['16'] = entity.x16;
	data['17'] = entity.x17;
	data['18'] = entity.x18;
	data['19'] = entity.x19;
	data['20'] = entity.x20;
	data['21'] = entity.x21;
	data['22'] = entity.x22;
	data['23'] = entity.x23;
	data['24'] = entity.x24;
	data['25'] = entity.x25;
	data['26'] = entity.x26;
	return data;
}